$OpenBSD: patch-modules_xhttp_pi_xhttp_pi_fnc_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/xhttp_pi/xhttp_pi_fnc.c.orig	Fri Oct  2 15:35:18 2015
+++ modules/xhttp_pi/xhttp_pi_fnc.c	Mon Oct 19 14:00:40 2015
@@ -3178,7 +3178,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
 						if(db_time2str(values[j].val.time_val,
 									val_str.s, &val_str.len)!=0){
 							LM_ERR("Unable to convert double [%ld]\n",
-								values[j].val.time_val);
+								(long)values[j].val.time_val);
 							goto error;
 						}
 						p += val_str.len;
@@ -3188,7 +3188,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
 							"[%ld][%.*s]\n",
 							command->q_keys[j]->len,
 							command->q_keys[j]->s, i,
-							values[j].val.time_val,
+							(long)values[j].val.time_val,
 							val_str.len, val_str.s);
 						break;
 					default:
